package ProxyPattern.StaticProxy;

public class buyHouseProxy implements buyHouse{
    private buyHouse buyhouse;
    public buyHouseProxy(buyHouse buyHouse){
        this.buyhouse=buyHouse;
    }
    @Override
    public void buyHouse() {
        System.out.println("=========买房前===========");
        buyhouse.buyHouse();
        System.out.println("=========买房后===========");
    }
}
